package quick.start.ui.widget;

import android.graphics.Canvas;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;

public class UrlDrawable extends BitmapDrawable {

	protected Drawable mDrawable;
	
	public void setDrawable(Drawable drawable){
		this.mDrawable = drawable;
	}
	
	@Override
	public void draw(Canvas canvas){
		if(mDrawable != null){
			mDrawable.draw(canvas);
		}
	}
	
	@Override
	public int getIntrinsicWidth(){
		return mDrawable.getIntrinsicWidth();
	}
}
